﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using _1.StudentTask.Model;

namespace _1.StudentTask
{
    class Program
    {
        static void Main(string[] args)
        {
            Student ivo = new Student() { FirstName = "Ivaylo", LastName="Nedyalkov", SSN = 123, University = University.SofiaUniversity };
            Student ivo2 = new Student() { FirstName = "Ivaylo", LastName = "Nedyalkov", SSN = 0, University = University.SofiaUniversity };
            Student ivo3 = new Student() { FirstName = "Ivaylo", LastName = "Nedyalkov", SSN = 55, University = University.SofiaUniversity };

            List<Student> students = new List<Student> { ivo, ivo2, ivo3};
            students.Sort();

            foreach (var s in students)
            {
                Console.WriteLine(s);
            }

            
        }
    }
}
